﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.controllers.kindergarten {
    import net.wooga.pets.events.*;
    import net.wooga.pets.interfaces.*;
    import net.wooga.pets.constants.*;
    import net.wooga.pets.controllers.world.*;

    public class MoveTeaserToKindergartenCommand extends CreateActorCommand {

        override public function execute():void{
            var _local1:ITreatable;
            var _local2:InfoEvent;
            if (event.info.baby){
                _local1 = (worldFactory.createActor(event.info.baby) as ITreatable);
                _local2 = new InfoEvent(EventConstants.CREATE_BABY, _local1.roomId, event.info.baby);
                dispatch(_local2);
            };
        }

    }
}//package net.wooga.pets.controllers.kindergarten 
